<template>
  <div class="app-container">
    <Find :OriginalFilter="{ static: true }" :formList="formList" @findClicked="findData" />

    <el-card style="margin-top: 10px" shadow="always" :body-style="{ padding: '10px' }">
      <div slot="header" class="f16">
        <span style="font-weight: 600">费用明细查询</span>
      </div>
      <Table :tableHeader="tableHeader" :tableData="tableData" :outTableHeight="80" />
      <PageModule :PageData="{ total: 500 }" />
    </el-card>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'FeeSettlementInquiry'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
import type { formListType } from '@/components/Find/index.vue'
import { ref } from 'vue'

const formList = ref<any>([
  {
    type: 'input',
    inputPlaceholder: '单据号码',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '送货单号',
    inputValue: ''
  },
  {
    type: 'date',
    dateLabel: '单据日期',
    dateValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '费用类型',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '厂商',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'date',
    dateLabel: '制单日期',
    dateValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '指令',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '结算月份',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '费用描述',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '结算单号',
    inputValue: ''
  },
  {
    type: 'checkbox',
    checkboxLabel: '未结算',
    checked: true
  },
  {
    type: 'checkbox',
    checkboxLabel: '已结算',
    checked: true
  },
  {
    type: 'checkbox',
    checkboxLabel: '已结算未应付',
    checked: true
  },
  {
    type: 'checkbox',
    checkboxLabel: '已结算已应付',
    checked: true
  },
  {
    type: 'button',
    checkboxLabel: '置空',
    bgColor: '#1890FF'
  },
  {
    type: 'button',
    checkboxLabel: '导出'
  },
  {
    type: 'button',
    checkboxLabel: '转指令查询用量'
  },
  {
    type: 'button',
    checkboxLabel: '转收货结算作业'
  }
])

const findData = () => {}

// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader = ref([
  {
    label: '单据号码',
    prop: 'slipNo'
  },
  {
    label: '单据日期',
    prop: 'slipDate'
  },
  {
    label: '制单日期',
    prop: 'dutyDeptName'
  },
  {
    label: '指令号',
    prop: 'sysUser'
  },
  {
    label: '费用类型',
    prop: 'dutyMemo'
  },
  {
    label: '厂商',
    prop: 'dutyMemo'
  },
  {
    label: '数量',
    prop: 'dutyMemo'
  },
  {
    label: '单位',
    prop: 'dutyMemo'
  },
  {
    label: '单价',
    prop: 'dutyMemo'
  },
  {
    label: '金额',
    prop: 'dutyMemo'
  },
  {
    label: '结算月份',
    prop: 'dutyMemo'
  },
  {
    label: '备注',
    prop: 'dutyMemo'
  },
  {
    label: '扣款',
    prop: 'dutyMemo'
  },
  {
    label: '结算单号',
    prop: 'dutyMemo'
  },
  {
    label: '备注信息',
    prop: 'dutyMemo'
  },
  {
    label: '费用描述',
    prop: 'dutyMemo'
  },
  {
    label: '制单员',
    prop: 'dutyMemo'
  }
])

const handleSizeChange = (val: number) => {}
const handleCurrentChange = (val: number) => {}
</script>

<style lang="less" scoped>
h1 {
  font-size: 14px;
}
</style>
